# PaddleSpeech 语音应用 Demo
# https://github.com/PaddlePaddle/PaddleSpeech/tree/develop/demos
# pip install --upgrade paddlenlp -i https://pypi.org/simple
import paddle
from paddlespeech.cli import TextExecutor

text_executor = TextExecutor()
result = text_executor(
    text='没事就好你送他回家王强说着对旁边的一个工人使了个眼色是以他把段云扶走随后对旁边为官的工人喊道一个个都傻站着干什么呢都赶紧干活去',
    task='punc',
    model='ernie_linear_p7_wudao',
    lang='zh',
    config=None,
    ckpt_path=None,
    punc_vocab=None,
    device=paddle.get_device())
print('Text Result: \n{}'.format(result))